package com.zoroki.student_score_system.service;

import com.zoroki.student_score_system.domain.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【course】的数据库操作Service
* @createDate 2025-06-30 12:49:22
*/
public interface CourseService extends IService<Course> {
    List<Course> findAllCourses();
    Course findCourseById(int id);
    boolean addCourse(Course course);
    boolean updateCourse(Course course);
    boolean deleteCourse(int id);

    Course getCourseByName(String name);
}
